<template>
	<view class="content">
			<text>{{title}}</text>
			<text></text>
			<rich-text :nodes="content"></rich-text>
	</view>
	
</template>

<script>
	import config from '../../lib/config.js'
	export default {
		props:{
		
		},
		data() {
			return {
				itemid:0,
				title:'',
				content:'',
			}
		},
		onLoad:function(p){
			this.itemid=p.itemid;
			this.load_data();
		},
		methods: {
			load_data:function(){
				uni.request({
					method: 'GET',
					url: config.api_url,
					data: {
						action: 'show',
						itemid: this.itemid,
					},
					success: (res) => {
						console.log(res);
						let d=res.data;
						this.title=d.data.title;
						this.content=d.data.content;
					},
				})
			}
		},
		created:function(){
			
		}
	}
</script>

<style>

</style>
